package com.weixing.mall.provider.controller.rpc;


import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.core.annotation.NoRepeatSubmit;
import com.weixing.mall.core.support.auth.SysAuth;
import com.weixing.mall.core.support.auth.SysInfo;
import com.weixing.mall.provider.model.vo.front.FrontDefectiveProductDto;
import com.weixing.mall.provider.service.IDefectiveProductService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("api/appdefective")
public class AppDefectiveProductRPCController {
    @Autowired
    private IDefectiveProductService defectiveProductService;
    @ApiOperation(value = "入次品库")
    @GetMapping ("save")
    public Result save(Long orderId,Integer type,Long uid,String remark){
        defectiveProductService.createRpc(orderId,type,uid,remark);
        return ResultUtil.success();
    }
}
